﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace GolfLeague.Models
{
    [MetadataType(typeof(PlayerHandicap_Validation))]
    public partial class PlayerHandicap
    {
    }

    public class PlayerHandicap_Validation
    {
        [Required]
        [Range(0, 40, ErrorMessage = "Handicap cannot be less than 0 or greater than 40.")]
        public Int16 Handicap { get; set; }
    }
}